package code;

import java.util.Random;

public class Dado {
	
	private Random r;
	private int tam;
	
	
	public Dado(int d){
		r = new Random();
		tam = d;
	}
	
	public int tirarDados(){
		return (int) r.nextInt(tam) + 1;	
	}
	
}
